﻿
@model  List<FTBS.Models.Entities.Chair>
  
 @{ var a = ViewBag.Hori; var b = ViewBag.Veri;}
<div style="overflow-x:auto;padding:10px">
    <div id="bor" style="margin:0 auto;opacity:0"><img src="~/Image/Icon/board.png" style="height:60px;width:70%;display:block;margin:auto" /></div> 
<table id="desk2" style="margin:0 auto">
            @for (var i = 0; i < a; i++)
            {
                var str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
                <tr>
                    @for (var j = 0; j < b; j++)
                    {
                        <td class="seat seat_choose" style="color: floralwhite; padding-bottom: 12px;padding-left:8px;font-size:12px;padding-top:2px;padding-right:12px;text-align:center">
                            <div style="padding-left: 0px; color: white">@Html.Label(str[i].ToString() + (j + 1).ToString())</div>
                            @Html.DropDownListFor(x => x[i].ChairTypeId, (SelectList)ViewBag.ChairType, new { id = str[i].ToString() + (j + 1).ToString() })
                        </td> 
                        }
                </tr>  
                <tr></tr>
                }
   
        </table>
    </div>
<div>
     
      
   

</div>
<script>
    $(document).ready(addRowHandlers2());
</script>

<div id="wrapper">
    <div style="display: none;" id="overlay"></div>
    <div style="display: none;" id="popup">
        <img src="~/Image/Icon/loading.gif" />
        <div style="font-weight: bold">Đang xử lý thao tác ...</div>
    </div>
</div>
<style>
    body{padding:0; margin:0; font-family:arial;}
	#wrapper{
		width:600px;
		margin:10px auto;
		text-align:center;
	}

	#overlay {
		background: #000000;
		opacity:0.5;
		bottom: 0;
		left: 0;
		position: fixed;
		right: 0;
		top: 0;
		z-index: 10000;
	}
	
	#popup {
		background: none repeat scroll 0 0 #FFFFFF;
		border: 20px solid #DDDDDD;
		left: 37.5%;
		padding: 50px;
		position: fixed;
		text-align: center;
		top: 28%;
		width: 280px;
		z-index: 20000;
		-moz-border-radius:30px 0;
	}
	</style>
